package com.tanhua.api.mongo;

import com.tanhua.domain.mongo.Publish;
import com.tanhua.domain.vo.PageBeanVo;

public interface PublishApi {

    // 发布动态的功能
    String save(Publish publish);

    // 我的动态
    PageBeanVo findMyPublish(Integer page,Integer pagesize,Long userId);

    //好友动态
    PageBeanVo findTimeLinePublish(Integer page,Integer pagesize,Long userId);


    //查看推荐用户动态
    PageBeanVo findRecommendPublish(Integer page,Integer pagesize,Long userId);

    //查询单条动态
    Publish findByIdtoPublish(String publishId);

    //// 查询该用户的圈子数据
    PageBeanVo findPublish(Integer page, Integer pagesize, Long uid, Integer state);

    void updateState(String publishId, Integer state);

    Publish findByPid(long parseLong);
}
